program NPK1;
uses MatchForBig;
var a:big;
begin
 readln(a);
 writeln(FactBig(a));
 readln;
end.